#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#define N 3

void transposition(int x[N][N]);

int main()
{
	int arr[N][N];
	int i, j;

	printf("Please enter arr:\n");
	for (i = 0; i < N; i++)
		for (j = 0; j < N; j++)
			scanf("%d", &arr[i][j]);

	transposition(arr);

	for (i = 0; i < N; i++)
	{
		for (j = 0; j < N; j++)
			printf("%d  ", arr[i][j]);
		printf("\n");
	}

	return 0;
}

void transposition(int x[N][N])
{
	int i, j, t;
	for(i=0;i<N;i++)
		for (j = 0; j < i; j++)
		{
			t = x[i][j];
			x[i][j] = x[j][i];
			x[j][i] = t;
		}

}